package org.diysearch.authenticators;

import org.diysearch.helpers.UserHelper;
import org.diysearch.interfaces.Authenticator;
import org.diysearch.models.User;

public class DiysearchAuthenticator implements Authenticator {

	@Override
	public boolean authenticate(User user) throws Exception {
		User _u = UserHelper.login(user);
		if (_u == null) {
			return false;
		} else {
			return true;
		}
	}

}
